//
//  Bag_Cell.m
//  K-Music
//
//  Created by LoGUYU on 16/1/15.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import "Bag_Cell.h"

@implementation Bag_Cell



- (void)initCell
{
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.OneView = [[Bag_CellView alloc] init];
    [self.contentView addSubview:self.OneView];
    
    self.TwoView = [[Bag_CellView alloc] init];
    [self.contentView addSubview:self.TwoView];
    
    self.ThreeView = [[Bag_CellView alloc] init];
    [self.contentView addSubview:self.ThreeView];
    
    CGFloat VWidth = (WIDTH /3);
    
    [self.OneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(15);
        make.left.equalTo(self.contentView.mas_left);
        make.width.mas_equalTo(VWidth);
    }];
    
    [self.TwoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(15);
        make.left.equalTo(self.OneView.mas_right);
        make.width.mas_equalTo(VWidth);
    }];
    
    [self.ThreeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(15);
        make.left.equalTo(self.TwoView.mas_right);
        make.width.mas_equalTo(VWidth);
    }];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
